Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Teleported Player View Angle

  1. #1

    Default Teleported Player View Angle

    Is it possible to change a player's view angle after they have been teleported by a teleporter?

    This doesn't seem to work:

    Code:
    local.player tele ( 1406.406 1122.747 167.154 )
    local.player.angle = 183.461
    It seems that a player faces the same direction he took the teleporter in when appearing at his final destination. Is there a way to change this?
    Browse MOHAA Servers Post GameSpy Era

    VISIT MOHREBORN.COM FOR LATEST INFORMATION



    Medal of Honor: Game Server Browser Fixer - Patches your MOHAA, MOHSH, and MOHBT game binaries to allow you to retrieve a list of game servers within the multi-player menu in-game even after GameSpy ceases operation!

    Medal of Honor: Query Launcher - Find, browse, organize, join, get your ping, and get more information regarding all Medal of Honor (AA, SH, & BT) servers from your PC at any time!
    Medal of Honor: Web Server Master List - Find and browse all Medal of Honor servers online using your browser!
    Add your Medal of Honor Server to the Master List
    YouTube Video for Medal of Honor: Query Launcher and MOHAASERVERS.TK!



    MOHAA Mods and Utilities
    OwN-3m-All's Mods
    Make Me Stock - A program that allows you to easily move-in and move-out non-stock mods and other files at the click of a button. Automates adding / removing mods without having to copy / move files manually.



    Quality Game Servers

    Rent dedicated Dallas Texas, Kansas City, Las Vegas Nevada, Chicago, Pennsylvania, and Sofia Bulgaria MOHAA and other game servers from We Be HostiN starting at $10 a month.


  2. #2

    Default

    viewangle or angle?

    local.player.viewangles = ()
    //changes his actual camera angles not the body
    but I think you might mean angle?

    try

    local.player.angles = ( 0 0 0 )

  3. #3

    Default

    Quote Originally Posted by Elgan View Post
    viewangle or angle?

    local.player.viewangles = ()
    //changes his actual camera angles not the body
    but I think you might mean angle?

    try

    local.player.angles = ( 0 0 0 )
    Yeah, I just want to rotate his body so he's looking the right way when he comes out of the teleporter.

    So, it's just:

    Code:
    local.player.angles = ( 0 0 0 )
    And it takes 3 params? I can get these from coord right? EZ Spawner spawns stuff only using 1 angle value like I did in my code that I tried that didn't work? Hmm, I'll give it a try. Thanks!
    Browse MOHAA Servers Post GameSpy Era

    VISIT MOHREBORN.COM FOR LATEST INFORMATION



    Medal of Honor: Game Server Browser Fixer - Patches your MOHAA, MOHSH, and MOHBT game binaries to allow you to retrieve a list of game servers within the multi-player menu in-game even after GameSpy ceases operation!

    Medal of Honor: Query Launcher - Find, browse, organize, join, get your ping, and get more information regarding all Medal of Honor (AA, SH, & BT) servers from your PC at any time!
    Medal of Honor: Web Server Master List - Find and browse all Medal of Honor servers online using your browser!
    Add your Medal of Honor Server to the Master List
    YouTube Video for Medal of Honor: Query Launcher and MOHAASERVERS.TK!



    MOHAA Mods and Utilities
    OwN-3m-All's Mods
    Make Me Stock - A program that allows you to easily move-in and move-out non-stock mods and other files at the click of a button. Automates adding / removing mods without having to copy / move files manually.



    Quality Game Servers

    Rent dedicated Dallas Texas, Kansas City, Las Vegas Nevada, Chicago, Pennsylvania, and Sofia Bulgaria MOHAA and other game servers from We Be HostiN starting at $10 a month.


  4. #4
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    wouldnt you change the middle one ?? Other two are the other axis's

    so local.player.angles = ( 0 183.461 0 )

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  5. #5

    Default

    Quote Originally Posted by own3mall View Post
    Yeah, I just want to rotate his body so he's looking the right way when he comes out of the teleporter.

    So, it's just:

    Code:
    local.player.angles = ( 0 0 0 )
    And it takes 3 params? I can get these from coord right?
    correct.



    Quote Originally Posted by own3mall View Post
    EZ Spawner spawns stuff only using 1 angle value like I did in my code that I tried that didn't work? Hmm, I'll give it a try. Thanks!
    Well its either my memory is wrong or EZ spawn-thing is wrong, seeming how angle didnt work for you, I'm going to stick with..try angles

    but I seem to remember yaw, roll ,pitch is actually wrong in mohaa? right? :S and you need to change roll or maybe pitch instead of yaw... and angle affects yaw..I think?

    but anyway...its local.player.angles= (vector)

    and learn to not use Ez spawner thing...its wrong.
    .. alliteratively you could use the TurnTo and turn functions...which work I'm sure.





    edit: my advicve is..change each and see what happens!!!!!

  6. #6

    Default

    Hey Elgan,

    The below code doesn't work, and I don't know why. The angle is completely ignored once a player is teleported. How would I use the TurnTo and turn functions? Do you have an example? That would be much appreciated, as I've never heard of these commands lol

    Code:
    endtriggeral:
    while(1)
    {
    $endtrgal waittill trigger
    if(parm.other.dmteam == allies) 
      { 
       local.player = parm.other 
       local.player tele ( 3561.92 1193.11 564.13 )
       local.player.angle = ( 4.53 -93.14 0.00 ) 
       level.alliesscore++
       thread Scorethread
       iprintlnbold "Allies Score !"
       if(level.resetals == 1)
    	{
       	level.resetals = 0
    	}
      }
    wait .5
    }
    end
    Browse MOHAA Servers Post GameSpy Era

    VISIT MOHREBORN.COM FOR LATEST INFORMATION



    Medal of Honor: Game Server Browser Fixer - Patches your MOHAA, MOHSH, and MOHBT game binaries to allow you to retrieve a list of game servers within the multi-player menu in-game even after GameSpy ceases operation!

    Medal of Honor: Query Launcher - Find, browse, organize, join, get your ping, and get more information regarding all Medal of Honor (AA, SH, & BT) servers from your PC at any time!
    Medal of Honor: Web Server Master List - Find and browse all Medal of Honor servers online using your browser!
    Add your Medal of Honor Server to the Master List
    YouTube Video for Medal of Honor: Query Launcher and MOHAASERVERS.TK!



    MOHAA Mods and Utilities
    OwN-3m-All's Mods
    Make Me Stock - A program that allows you to easily move-in and move-out non-stock mods and other files at the click of a button. Automates adding / removing mods without having to copy / move files manually.



    Quality Game Servers

    Rent dedicated Dallas Texas, Kansas City, Las Vegas Nevada, Chicago, Pennsylvania, and Sofia Bulgaria MOHAA and other game servers from We Be HostiN starting at $10 a month.


  7. #7

  8. #8

    Default

    Hi Own 'em all,

    Why not just use the "FACE" command instead of viewangles?

    Like so:

    local.player tele ( 3561.92 1193.11 564.13 )
    local.player face ( 4.53 -93.14 0.00 )

    Or have you tried it already and it didn't work?

  9. #9

    Default

    Face worked for me. Angles did not. Thanks guys! I never knew about the face command...
    Browse MOHAA Servers Post GameSpy Era

    VISIT MOHREBORN.COM FOR LATEST INFORMATION



    Medal of Honor: Game Server Browser Fixer - Patches your MOHAA, MOHSH, and MOHBT game binaries to allow you to retrieve a list of game servers within the multi-player menu in-game even after GameSpy ceases operation!

    Medal of Honor: Query Launcher - Find, browse, organize, join, get your ping, and get more information regarding all Medal of Honor (AA, SH, & BT) servers from your PC at any time!
    Medal of Honor: Web Server Master List - Find and browse all Medal of Honor servers online using your browser!
    Add your Medal of Honor Server to the Master List
    YouTube Video for Medal of Honor: Query Launcher and MOHAASERVERS.TK!



    MOHAA Mods and Utilities
    OwN-3m-All's Mods
    Make Me Stock - A program that allows you to easily move-in and move-out non-stock mods and other files at the click of a button. Automates adding / removing mods without having to copy / move files manually.



    Quality Game Servers

    Rent dedicated Dallas Texas, Kansas City, Las Vegas Nevada, Chicago, Pennsylvania, and Sofia Bulgaria MOHAA and other game servers from We Be HostiN starting at $10 a month.


  10. #10
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Quote Originally Posted by own3mall View Post
    Face worked for me. Angles did not. Thanks guys! I never knew about the face command...
    Neither did i , always good to know now

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •